package com.secondhand.service;

import com.secondhand.domain.order;
import com.secondhand.vo.orderItem;

import java.util.List;

public interface orderService {
    //生成订单
    boolean generateOrder(order order);
    //查询已卖出的
    List<orderItem> getSold(int userId);
    //查询已买到的
    List<orderItem> getBought(int userId);
    //查询买家未完成订单
    List<orderItem> getHalfSoldOrder(int userId);
    //查询卖家未完成订单
    List<orderItem> getHalfBoughtOrder(int userId);
    //点击发货
    boolean send(int orderId);
    //点击签收
    boolean receive(int orderId,int goodId);
}
